import React from 'react';
import './index.less';
import '../global.less';
import Menu from '@/components/Menu';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/lib/locale/zh_CN';

const Route: React.FC = ({ children }) => {
    return (
        <ConfigProvider locale={zhCN}>
            <div className="application">
                <Menu />
                <div style={{ flex: 1, padding: '16px', overflow: 'hidden' }}>{children}</div>
            </div>
        </ConfigProvider>
    );
};

export default Route;
